<?php
class BoxShippingMethod extends TRepeaterItemRenderer
{
	public function onDataBinding($param)
	{
		parent::onDataBinding($param);		
		if (count($this->Data)>0)
		{		
			$this->lblPrice->Text=$this->getFormattedValue($this->Data->Price);
		}		
	}
	
	public function getFormattedValue($value,$pattern="c",$currency="SGD")
	{
		$formatter = new NumberFormat($this->Application->Globalization->Culture);
		return $formatter->format($value,$pattern,$currency,$this->Application->Globalization->Charset);
	}
}

?>